/*
 * IOController.cpp
 *
 *  Created on: Apr 1, 2011
 *      Author: s88900
 */

#include "IOController.h"
#include <iostream>

IOController::IOController(int id, ImageBuffer* b){
	Iid = id;
	buffer = b;
}

// Merger doet ...
void IOController::receive( int id, char image ){
	//cout << "iocontroller received" << endl;
	//cout << "id: " << id << endl;
	buffer->newImage(id, image);
}

IOController::~IOController() {
	delete buffer;
	Iid=0;
}
